% Remember to use the lgrind style

\Head{}
\File{./chgprio.c}{2006}{11}{4}{4:49}{526}
\L{\LB{\V{\#include}_\<\V{sys}/\V{types}.\V{h}\>}}
\L{\LB{\V{\#include}_\<\V{stdlib}.\V{h}\>}}
\L{\LB{\V{\#include}_\<\V{unistd}.\V{h}\>}}
\L{\LB{\V{\#include}_\<\V{stdio}.\V{h}\>}}
\L{\LB{\V{\#include}_\<\V{time}.\V{h}\>}}
\L{\LB{}}
\L{\LB{\V{\_PROTOTYPE}_(\V{int}_\V{main},_(\V{int}_\V{argc},_\V{char}_*\V{argv}_[\,]));}}
\L{\LB{}}
\L{\LB{\V{int}_\V{main}(\V{argc},_\V{argv})}}
\L{\LB{\V{int}_\V{argc};}}
\L{\LB{\V{char}*_\V{argv}[\,];}}
\L{\LB{\{}}
\L{\LB{}\Tab{8}{\V{int}_\V{pid};}}
\L{\LB{}\Tab{8}{\V{int}_\V{prioridad};}}
\L{\LB{}\Tab{8}{\V{int}_\V{respuesta};}}
\L{\LB{}}
\L{\LB{}\Tab{8}{\V{time\_t}_\V{a};}}
\L{\LB{}}
\L{\LB{}\Tab{8}{\V{if}_(\V{argc}_\<_\N{3})_\{}}
\L{\LB{}\Tab{16}{\V{printf}(\3\V{Pasar}_\V{por}_\V{lo}_\V{menos}_\V{dos}_\V{parametros}_\V{numericos}.\2\V{n}\3);}}
\L{\LB{}\Tab{16}{\V{exit}(\N{1});}}
\L{\LB{}\Tab{8}{\}}}
\L{\LB{}}
\L{\LB{}\Tab{8}{\V{pid}_=_\V{atoi}(\V{argv}[\N{1}]);}}
\L{\LB{}\Tab{8}{\V{prioridad}_=_\V{atoi}(\V{argv}[\N{2}]);}}
\L{\LB{}}
\L{\LB{}\Tab{8}{\V{respuesta}_=_\V{chgprio}(\V{pid},_\V{prioridad});}}
\L{\LB{}}
\L{\LB{}\Tab{8}{\V{if}_(\V{respuesta}_\<_\N{0})_\{}}
\L{\LB{}\Tab{16}{\V{printf}(\3\V{PID}_\V{o}_\V{prioridad}_\V{incorrectos}\2\V{n}\3);}}
\L{\LB{}\Tab{8}{\}}}
\L{\LB{}}
\L{\LB{}\Tab{8}{\V{return}_\V{respuesta};}}
\L{\LB{\}}}
